package com.nsxy.manager.user.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import com.nsxy.common.beans.BaseEntity;

/**
 * 账户
 * @author 潜行的青衣
 * @see
 */
@Entity
@Table(name = "t_manager_account")
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class Account extends BaseEntity<String> {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6662891806722527570L;

	public final static byte STATUS_VALID = 1;		//生效
	
	public final static byte STATUS_INVALID = 0;	//失效

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@Column(length = 50)
	private String account;
	
	@Column(length = 100)
	private String password;
	
	@Column(length = 1)
	private byte status;
	
	@Column(length = 19)
	private String createtime;
	
	@Column(length = 19)
	private String updatetime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public byte getStatus() {
		return status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public String getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(String updatetime) {
		this.updatetime = updatetime;
	}
	
}
